function h=def_draw_game_board(G)
% def_draw_game_board: Default subroutine to draw game board
%
% SYNTAX:
%   h= def_draw_game_board(G)
%   Return handles of graphics objects in the game board.
%   This routine will draw the boundary and/or obstacles if specified in game object G.
%   Will be called before simulating the whole game.
%   You can provide your own routine following the calling syntax here.

%   Author: Hongbin Ma
%   Last updated: 2009-6-1 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

h=[];
if ~isempty(G.boundary),
    h=[drawboundary(G.boundary)];
end;
if ~isempty(G.obstacles),
    for k=1:length(G.obstacles),
        h=[h,drawobstacle(G.obstacles{k})];
    end;
end;
